home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / collect / collevw.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.8 KB  |  77 lines

  1. // collevw.cpp : implementation of the CCollectView class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "collect.h"
  15.  
  16. #include "colledoc.h"
  17. #include "collevw.h"
  18.  
  19. #ifdef _DEBUG
  20. #undef THIS_FILE
  21. static char BASED_CODE THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CCollectView
  26.  
  27. IMPLEMENT_DYNCREATE(CCollectView, CView)
  28.  
  29. BEGIN_MESSAGE_MAP(CCollectView, CView)
  30.     //{{AFX_MSG_MAP(CCollectView)
  31.     //}}AFX_MSG_MAP
  32.     // Standard printing commands
  33. END_MESSAGE_MAP()
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CCollectView construction/destruction
  37.  
  38. CCollectView::CCollectView()
  39. {
  40. }
  41.  
  42. CCollectView::~CCollectView()
  43. {
  44. }
  45.  
  46. /////////////////////////////////////////////////////////////////////////////
  47. // CCollectView drawing
  48.  
  49. void CCollectView::OnDraw(CDC* pDC)
  50. {
  51.     CCollectDoc* pDoc = GetDocument();
  52.     ASSERT_VALID(pDoc);
  53.  
  54.     pDC;    // not used
  55. }
  56.  
  57. /////////////////////////////////////////////////////////////////////////////
  58. // CCollectView diagnostics
  59.  
  60. #ifdef _DEBUG
  61. void CCollectView::AssertValid() const
  62. {
  63.     CView::AssertValid();
  64. }
  65.  
  66. void CCollectView::Dump(CDumpContext& dc) const
  67. {
  68.     CView::Dump(dc);
  69. }
  70.  
  71. CCollectDoc* CCollectView::GetDocument() // non-debug version is inline
  72. {
  73.     return STATIC_DOWNCAST(CCollectDoc, m_pDocument);
  74. }
  75. #endif //_DEBUG
  76.  
  77.